/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package shaman.storage.common;

/**
 *
 * @author dmitriy
 */
public class DelegateFileProperties extends FileProperties {

    private boolean mutabilityControl;

    public DelegateFileProperties(FilePropertiesAccessor acc, boolean mutabilityControl) {
        super(acc);
    }

    @Override
    public void setImmutable() {
        if (!mutabilityControl)
            throw new UnsupportedOperationException("Mutability control not allowed");
        super.setImmutable();
    }

}
